import { Component, Input } from '@angular/core';
import {  PutRole } from 'src/app/@core/data/role';

@Component({
  selector: 'app-edit-role',
  templateUrl: './edit-role.component.html',
  styleUrls: ['./edit-role.component.scss']
})
export class EditRoleComponent {
  @Input() data:any
  enable = false;
  radioValue='否';
  PutRole={
    name:'',
    isEnable:false
  }
  constructor() { }
  ngOnInit(): void {
    this.PutRole.isEnable = this.data.rowItem.isEnable
    this.PutRole.name = this.data.rowItem.name
  }
  valueChange(value:any){
    this.PutRole.isEnable = value
  }
}
